package iq.operator;

import java.util.Random;

import stream.SysOut;

public class Plus {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int a = 1;
		int b = 2;
		System.out.println(a + b + "c");//3c
		
		Random random = new Random(47L);//有Seed,每次随机数顺序都会是一样的
		
		for (int i = 0; i<10; i++) {
			System.out.print(random.nextInt(3) + ", ");
		}
		System.out.println();
		
		int c = 0111;//八过进制
		System.out.println(c);
		
		double d = 123.5;//小数默认用double表示,不用加d(D)
		
		float f = 123.5f;//要加f表示是float
		
		byte by = 23;
		
		int h = 0x23f;

		double dh = 0x1f;
		
		float fh = 0X1f;
		//float fh = 0X1f.1;//编译错误
		System.out.println(fh);
		
		float eh = 012.3f;
		System.out.println(eh);
		
		System.out.println(0x3P3); //????
	}

}
